<template>
  <div class="container">
    <div class="form-table">
      <div class="title">{{ title }}</div>
      <el-divider></el-divider>
      <slot></slot>
      <el-divider></el-divider>
      <slot name="button"></slot>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    title: {
      type: String,
      default: "",
      required: true,
    },
  },
  components: {},
  mounted() {},
  methods: {},
};
</script>
<style scoped lang="scss">
.container {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 20px;

  .form-table {
    width: 100%;
    height: auto;
    background-color: #f7f7f7;
    box-sizing: border-box;
    padding: 20px;

    .title {
      font-size: 16px;
      font-weight: bold;
      color: #e26a6a;
      text-align: left;
    }
  }
}
</style>
